package com.jrx.anytxn.accounting.job.glinterface.step;

import com.jrx.anytxn.transaction.entity.TlGlInterfaceInfo;
import org.apache.ibatis.session.SqlSessionFactory;
import org.mybatis.spring.batch.MyBatisPagingItemReader;

import java.util.Date;
import java.util.HashMap;

/**
 * @ClassName GlInterfaceReader
 *  总账流水读处理
 * @author  yf
 * date  2019/9/11 0011
 * @Version V1.0
 **/
public class GlInterfaceReader extends MyBatisPagingItemReader<TlGlInterfaceInfo> {

    public GlInterfaceReader(Date businessDate,SqlSessionFactory sqlSessionFactory, Integer pagesize) {

        setSaveState(false);
        setPageSize(pagesize);
        setSqlSessionFactory(sqlSessionFactory);
        setQueryId("com.jrx.anytxn.transaction.mapper.ext.ExtTlGlInterfaceInfoMapper.getByDateAndOrgId");
        setParameterValues(new HashMap<String, Object>() {
            {
                put("date",businessDate);
            }
        });
    }


}
